// 网易云信IM SDK
// import axios from 'axios';
// const baseURL = 'https://api.netease.im/nimserver/user/create.action';
// const axiosInstance = axios.create({
//     baseURL
// });
// axiosInstance.interceptors.response.use(
//     res => res.data,
//     err => {
//         console.log('网络错误', err)
//     }
// );
// const
const SDK: any = window.SDK;
export const initSDK = () => {
    const appKey = '5d519c2127332529236b032b3f0f304e';
    const account = '9b996ff8e89e46b14b86dd2738b91355';
    const token = '8b9ac8c5e95e16ed69375cd19f73ec00';
    SDK.NIM.getInstance({
        debug: true,
        appKey,
        account,
        token,
        onconnect: function () {
            alert('SDK 连接成功')
        },
        ondisconnect: function (obj: any) {
            console.log('SDK 连接断开', obj)
        },
        onerror: function (error: any) {
            console.log('SDK 连接失败', error)
        }
    })
};